<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ taglib uri="/sys-tags" prefix="sys"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta charset="UTF-8">
<title><s:text name="title_taskInfoPage"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<base target="_self" />

<%@ include file="../common/header.jsp"%>
<link rel="stylesheet" type="text/css" href="${appPath}/css/task.css" />
<script type="text/javascript" src="${appPath}/js/task.js"></script>
<link href="${appPath}/css/nav.css"rel="stylesheet" type="text/css" />
</head>
<s:fielderror></s:fielderror>
<body>
<%@ include file="../common/nav.jsp" %>
<div id="content1" class="content">
<p class="space2"></p>
<h1 class="font2" ><s:text name="label_taskInfoList"/></h1>
<hr width="860px">
<p class="space1"></p>
<table cellspacing="0" style="margin-left: auto; margin-right: auto;">
<thead>
<tr bgcolor="#bbbbbb">
<td height="30px" width="282px" align="center" class="font1"><s:text name="label_user"/></td>
<td width="42px" align="center" class="font1"><s:text name="label_peopleNum"/></td>
<td width="162px" align="center" class="font1" ><s:text name="label_startDay"/></td>
<td width="162px" align="center" class="font1" ><s:text name="label_endDay"/></td>
<td width="102px" align="center" class="font1" ><s:text name="label_costPlan"/></td>
<td width="60px" align="center" class="font1"></td>
<s:hidden name="goodsImg" id="goodsImg" value="%{goods_img}"/>
</tr>
</thead>
<tbody>
<s:iterator value="taskList" id="taskList" status="listStatus">
	<s:if test="#listStatus.odd == true">
	<tr bgcolor="#f1f1f1">
	<td width="282px" height="30px" align="center"><%-- <s:label value="%{user_id}"/> --%>
		<s:label value="%{name_kanji_sei}"/> <s:label value="%{name_kanji_mei}"/>/
		<s:label value="%{name_katakana_sei}"/> <s:label value="%{name_katakana_mei}"/>/
		<s:label value="%{name_en_family}"/> <s:label value="%{name_en_middle}"/> <s:label value="%{name_en_last}"/>
	
	</td>		
	<td width="42px" align="center"><s:label value="%{people_num}"/>  </td>
	<td width="162px" align="center"><s:label value="%{start_day}"/>  </td>
	<td width="162px" align="center"><s:label value="%{end_day}"/>  </td>
	<td width="102px" align="center"><s:label value="%{cost_plan}"/>  </td>
	<td width="120px" align="center"><a href="#"  class="setTaskInfoInit"><s:text name="label_set"/></a>
	<s:hidden value="%{order_id}"/>
	</td>
	</tr>
	</s:if>
	<s:else>
		<tr bgcolor="#cccccc">
	<td width="282px" align="center"><%-- <s:label value="%{user_id}"/> --%>
		<s:label value="%{name_kanji_sei}"/> <s:label value="%{name_kanji_mei}"/>/
		<s:label value="%{name_katakana_sei}"/> <s:label value="%{name_katakana_mei}"/>/
		<s:label value="%{name_en_family}"/> <s:label value="%{name_en_middle}"/> <s:label value="%{name_en_last}"/>
	
	</td>		
	<td width="42px" align="center"><s:label value="%{people_num}"/>  </td>
	<td width="162px" align="center"><s:label value="%{start_day}"/>  </td>
	<td width="162px" align="center"><s:label value="%{end_day}"/>  </td>
	<td width="102px" align="center"><s:label value="%{cost_plan}"/>  </td>
	<td width="120px" align="center"><a href="#"  class="setTaskInfoInit"><s:text name="label_set"/></a>
	<s:hidden value="%{order_id}"/>
	</td>
	</tr>
	
	
	</s:else>


</s:iterator>
	<tr>
	<td height="20px"></td></tr>
</tbody>
</table>
</div>

<div id="content2" class="content" style="display: none;">
<p class="space2"></p>
<h1 class="font2" ><s:text name="label_editTask"/>&nbsp;&nbsp;&nbsp;&nbsp;</h1>
<hr width="860px">
<s:form id="taskForm"  method="post" >
<table>
<tr>
<td colspan="2">
<!-- 任務設定DIV -->
<div id="taskEditDiv">
<s:hidden id="orderId" name="taskInfo.order_id"/>
<s:hidden id="areaId" name="taskInfo.area_id"/>
<table>
	<tr>
		<td width="150px" height="50px" align="right"class="font1"><s:text name="label_goodsName"></s:text></td>
		<td width="200px" height="40px" id="goodsName"><%-- <s:label value="%{taskInfo.goods_id}"/> --%> 
		<s:label value="%{taskInfo.goodsNameJa}"/>
		<s:label value="%{taskInfo.goodsNameZh}"/>
		<s:label value="%{taskInfo.goodsNameEn}"/>
		</td>
		<td width="100px" height="50px" align="right"class="font1"><s:text name="label_user"></s:text></td>
		<td width="200px" height="40px" id="userName">
		<%-- <s:label value="%{taskInfo.user_id}"/> --%>
		<s:label value="%{taskInfo.name_kanji_sei}"/> <s:label value="%{taskInfo.name_kanji_mei}"/>/
		<s:label value="%{taskInfo.name_katakana_sei}"/> <s:label value="%{taskInfo.name_katakana_mei}"/>/
		<s:label value="%{taskInfo.name_en_family}"/> <s:label value="%{taskInfo.name_en_middle}"/> <s:label value="%{taskInfo.name_en_last}"/>
		</td>
	</tr>
	<tr>
		<td width="150px" height="50px" align="right"class="font1"><s:text name="label_period"></s:text></td>
		<td width="200px" height="40px"><s:label value="%{taskInfo.start_day}"/>~<s:label value="%{taskInfo.end_day}"/></td>
		<td width="100px" height="50px" align="right"class="font1"><s:text name="label_peopleNum"></s:text></td>
		<td width="200px" height="40px" id="peopleNum"><s:label value="%{taskInfo.people_num}"/></td>
	</tr>
	<tr>
		<td width="150px" height="50px" align="right"class="font1"><s:text name="label_service"></s:text></td>
		<td width="450px" height="120px">
		<s:iterator value="taskInfo.resourceTypeInfoList" id="resourceTypeInfo" status="listStatus">
		<%-- <img alt="" class="resourceTypeImg"  width="100" height="100" src="${appPath}/resource_img/resource/master/<s:property value="img"/>"/> --%>
		<sys:image height="80px" width="80px" imagePath="/${img}\" class=\"resourceTypeImg"></sys:image>
		<s:hidden name="taskInfo.resourceTypeInfoList[%{#listStatus.index}].resource_type_id"/>
		<s:hidden id="resourceGoodsId[%{#listStatus.index}]"/>
		</s:iterator>
		</td>
		<td width="100px" height="50px" align="right"class="font1"><s:text name="label_costPlan"></s:text></td>
		<td width="200px" height="40px" id="costPlan"><s:label value="%{taskInfo.cost_plan}"/></td>

	</tr>
</table>
</div>
<!-- 日程安排DIV -->
<div id="scheduleDIV">
			<div  class="title001">	
				<span class="font001"><b><s:text name="title_eventManager"></s:text></b></span>
				<input type="button" class="button1"  value="<s:text name="label_editEvent"></s:text>"  id="addSchedule"/>
			</div>
			
	<table style="background: white; width:860px;margin-left: auto; margin-right: auto;" cellspacing="0">
	<thead>
	<tr bgcolor="#bbbbbb">
		<!-- <td height="30px" width="192px" align="center" class="font1"><s:text name="label_number"></s:text></td> -->
		<td height="30px" width="100px" align="center" class="font1"><s:text name="label_evnetName"></s:text></td>
		<td width="100px" align="center" class="font1"><s:text name="label_date"></s:text></td>
		<td width="100px" align="center" class="font1" > <s:text name="label_startTime"></s:text> </td>
		<td width="100px" align="center" class="font1"><s:text name="label_endTime"></s:text></td>
		<td width="100px" align="center" class="font1"><s:text name="label_eventArea"></s:text></td>
	</tr>
	</thead>
	<tbody>
	<s:iterator value="eventList" id="eventList" status="listStatus">
		<s:if test="#listStatus.odd == true">
	<tr bgcolor="#f1f1f1">
		<!-- <td width="20px" align="center" height="30px">NO.<s:label value="%{event_id}"/></td> -->
		<td height="30px" width="100px" align="center"><s:label value="%{title}"/></td>
		<td width="100px" align="center"><s:label value="%{day}"/></td>
		<td width="100px" align="center"><s:label value="%{start_time}"/></td>
		<td width="100px" align="center"><s:label value="%{end_time}"/></td>
		<td width="100px" align="center"><s:label value="%{place}"/></td>
	</tr>
	</s:if>
	<s:else>
		<tr bgcolor="#cccccc">
		<!-- <td width="20px" align="center" height="30px">NO.<s:label value="%{event_id}"/></td> -->
		<td height="30px" width="100px" align="center"><s:label value="%{title}"/></td>
		<td width="100px" align="center"><s:label value="%{day}"/></td>
		<td width="100px" align="center"><s:label value="%{start_time}"/></td>
		<td width="100px" align="center"><s:label value="%{end_time}"/></td>
		<td width="100px" align="center"><s:label value="%{place}"/></td>
	</tr>
	
	
	
	</s:else>
	
	</s:iterator>
	</tbody>
	</table>			
			
</div>
<div id="feeDIV">
			<div  class="title001">
				<span class="font001"><b><s:text name="label_cost"></s:text></b></span>
			</div>
<table style="background: white; width:860px;margin-left: auto; margin-right: auto;" cellspacing="0">
		<thead>
			<tr bgcolor="#bbbbbb">
				<td width="192px" align="center" class="font1" height="30px"><s:text name="label_goodsId"></s:text></td>
				<td width="100px" align="center" class="font1"><s:text name="label_goodsPrice"></s:text></td>
				<td width="120px" align="center" class="font1" ><s:text name="label_useStartTime"></s:text></td>
				<td width="120px" align="center" class="font1" ><s:text name="label_useEndTime"></s:text></td>
			</tr>
				</thead>
				<tbody>
			<s:iterator value="feeDetailList" id="feeDetailList" status="listStatus">
				<s:if test="#listStatus.odd == true">
			<tr bgcolor="#f1f1f1">
				<!-- <td width="192px" align="center" height="30px"><s:label value="%{goods_id}"/></td>	 -->
				<td><sys:image height="80px" width="80px" imagePath="/${goods_img}\""></sys:image></td>
				<td width="192px" align="center"><s:label value="%{price}"/>  </td>
				<td width="192px" align="center"><s:label value="%{start_day}"/>  </td>
				<td width="192px" align="center"><s:label value="%{end_day}"/>  </td>
			</tr>
			</s:if>
			<s:else>
				<tr bgcolor="#cccccc">
				<td><sys:image height="80px" width="80px" imagePath="/${goods_img}\""></sys:image></td>		
				<td width="192px" align="center"><s:label value="%{price}"/>  </td>
				<td width="192px" align="center"><s:label value="%{start_day}"/>  </td>
				<td width="192px" align="center"><s:label value="%{end_day}"/>  </td>
			</tr>
			
			</s:else>
			</s:iterator>
			<tr>
			<td colspan="4" align="right">
						<s:label value="%{getText('label_totalCost')}"/><s:label value="%{amountStr}"/>
			</td>
			</tr>
			</tbody>
		</table>
		<table >	
			<tr>
				<td height="150px" width="128px" align="right" class="font1">
						<s:text name="label_description"></s:text>
				</td>
				<td width="600px" align="left" class="font1"><s:textarea  id="description" cols="80" rows="8" name="description" value="%{taskInfo.descriptionx}"/>	</td>
				<td width="255px" align="center" class="font1">
			
				</td>
			</tr>
			<tr>	<td align="center" colspan="3" height="100px"><input type="button"  value="<s:text name="label_SureButton"></s:text>" class="button1" id="saveTaskBt"/></td></tr>
		</table>
		<p>&nbsp;</p>
</div>

</td>
</tr>
<!-- <tr >
<td width="480px" height="100px" align="center" colspan="2">
<input type="button"  value="登録" class="button1" id="saveTaskBt"/>
</td>
</tr> -->
</table>
</s:form>
</div>
<!-- <div style="margin-top:10px;margin-bottom:10px;text-align:center;">
<input type="button" value="返回" class="button1" id="returnBt"/>
</div> 
-->

<p class="space1"></p>
</body>
</html>